import axios from 'axios'
import { Toast } from 'vant'
// axios.defaults.baseURL = 'http://itfly.vip'
const service = axios.create({
  baseURL: 'http://itfly.vip'
  // timeout: 3000
})

// 响应拦截
service.interceptors.response.use((response) => {
  return response
}, err => {
  // 全局拦截错误信息
  Toast('网络请求失败...')
  Promise.reject(err)
})

export default service